import http from '../http'

// 分页查询库存盘点记录（使用 POST + query 参数，兼容后端不接收 JSON Body 的情况）
export function pageInventoryCheck(params) {
  return http.post('/warehousing/inventory-check/page', null, { params })
}

// 新增库存盘点记录
export function addInventoryCheck(data) {
  return http.post('/warehousing/inventory-check/add', data)
}

// 获取库存盘点详情
export function getInventoryCheckDetail(id) {
  return http.get('/warehousing/inventory-check/detail', { params: { id } })
}

// 导出库存盘点记录
export function exportInventoryCheck(params) {
  return http.get('/warehousing/inventory-check/export', {
    params,
    responseType: 'blob'
  })
} 